<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jq.js"></script>
	</head>
	<body>
		<script>
			var url = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=" +
				"36_5bnemK5rwKUO6e7PQQRo5LTBVuTqXTtPpQfK6k-eEprIS-1L-MiAoDP2o7oHrD_ZPTzRyoaaC6aCWMdypyN2JLboChC7pAMlSyCT" +
				"Dz2Wm8BpD-Xy5tUmHNtGdkJ-peVKPxD_lHyZ3RFVk91kHNLiAGAVBZ";
			$.ajax({
				type: 'POST', // 规定请求的类型（GET 或 POST）
				url: url, // 请求的url地址
				dataType: 'json', //预期的服务器响应的数据类型 
				
				// data: "{\"expire_seconds\": 604800, \"action_name\": \"QR_SCENE\", \"action_info\": {\"scene\": {\"scene_id\": 123}}}",
				data: "{\"expire_seconds\": 604800, \"action_name\": \"QR_STR_SCENE\", \"action_info\": {\"scene\": {\"scene_str\": 123}}}",
				
				success: function(result) { // 当请求成功时运行的函数
					//...
					console.log(result);
				},
				error: function(result) { //失败的函数
					console.log(result);
					//...
				},
			});
		</script>
	</body>
</html>
